import { AddFormatFunc, unaryRuleType } from "../types";

AddFormatFunc<unaryRuleType>({

	type: "UNARY",

	handle: (rule, FMC) => {
		return `${rule[1].length === 0 ? "" : rule[1][0] === "new" || rule[1][0] === "default" ? `${rule[1][0]} ` : rule[1][0]}${FMC(rule[2])}`;
	},

})
